<!doctype html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title><g:layoutTitle default="Some Title"/></title>
    <link rel="icon" href="${createLinkTo(dir: "images", file: "favicon.ico")}" type="image/x-icon">
    <link rel="shortcut icon" href="${createLinkTo(dir: 'images', file: 'favicon.ico')}" type="image/x-icon"/>
    <asset:stylesheet src="homer/vendor/fontawesome/css/font-awesome.min.css"/>
    <asset:stylesheet src="homer/vendor/metisMenu/metisMenu.min.css"/>
    <asset:stylesheet src="homer/vendor/bootstrap/css/bootstrap.min.css"/>
    <asset:stylesheet src="homer/vendor/bootstrap-touchspin/jquery.bootstrap-touchspin.min.css"/>
    <asset:stylesheet src="homer/style.css"/>
    <asset:stylesheet src="homer/vendor/sweetalert/sweet-alert.css"/>
    <asset:stylesheet src="homer/vendor/codemirror/codemirror.css"/>
    <asset:stylesheet src="homer/vendor/select2-3.5.2/select2.min.css"/>
    <asset:stylesheet src="homer/vendor/select2-3.5.2/select2-bootstrap.css"/>
    <asset:stylesheet src="homer/vendor/highlight/styles/atelier-seaside-light.css"/>
    <asset:javascript src="homer/vendor/jquery/jquery.min.js"/>
    <g:layoutHead/>

    <style type="text/css">
    html {
        height: 100%;
    }

    body {
        font-family: "Microsoft YaHei", "Microsoft Sans Serif", "Helvetica Neue", Helvetica, Arial, "Hiragino Sans GB", sans-serif;
        background-color: #f1f3f6;
    }

    .table {
        margin-bottom: 0;
    }

    .pagination {
        margin: 0 auto;
        text-align: center;
    }

    .pagination a,
    .pagination .currentStep {
        color: #666;
        display: inline-block;
        margin: 0 0.1em;
        padding: 0.25em 0.7em;
        text-decoration: none;
        -moz-border-radius: 0.3em;
        -webkit-border-radius: 0.3em;
        border-radius: 0.3em;
    }

    .pagination a:hover, .pagination a:focus,
    .pagination .currentStep {
        background-color: #999;
        color: #fff;
        outline: none;
        text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.8);
    }

    .panel-tools i {
        margin-right: 4px;
    }

    .errors {
        position: absolute;
        right: 10%;
        z-index: 10;
        top: 10px;
        color: #e74c3c;
        margin: 5px 0 0 0;
        font-weight: 400;
    }

    .errors li {
        padding: 10px 0;
    }

    .contact-stat span {
        font-size: 13px;
        color: #88898c;
        margin-bottom: 10px;
    }

    .contact-stat strong {
        font-size: 13px;
    }

    .form-group span.cont {
        padding-top: 7px;
        margin-bottom: 0;
        display: block;
        font-size: 14px;
        color: #555;
    }

    #side-menu li a i {
        margin-right: 4px;
    }

    #side-menu li a {
        padding: 15px 20px 15px 10px;
    }

    .profile-picture i {
        margin-right: 10px;
    }

    #menu {
        background-color: #fff;
    }

    .new-dropdown {
        min-width: 100px;
    }

    .new-dropdown li i {
        margin-right: 6px;
    }

    .mobile-navbar .navbar-nav > li, .mobile-navbar .navbar-nav > li > a {
        height: 36px;
        line-height: 36px;
    }

    .mobile-navbar .navbar-nav > li > a {
        padding: 0 15px;
        font-size: 13px;
    }

    .dropdown-link {
        height: 56px !important;
        line-height: 56px !important;
        padding: 0 20px !important;
        display: block;
    }

    .hpanel {
        margin-bottom: 12px;
    }

    .select2-container .select2-choice {
        font-size: 14px;
        font-family: inherit;
    }

    .select2-search input {
        font-family: inherit;
    }

    .hr-line-dashed {
        margin: 15px 0;
    }

    .content {
        padding: 10px 40px 16px 40px;
    }

    .fixed-small-header .content {
        padding: 60px 40px;
    }

    .content.active {
        padding: 60px 40px 80px 40px !important;
    }

    .

    @media (max-width: 720px) {
        .content.active {
            padding: 140px 40px 80px 40px !important;
        }
    }

    #logo {
        padding: 18px;
    }
    .panel-body.active {
        border: none;
    }


    table.text-center th {
        text-align: center;
    }

    .seach-group .col-md-3 {
        margin-bottom: 6px;
    }
    pre {
        padding: 0px;
        border: none;
        background-color: transparent;
    }
    .hljs,.CodeMirror-code {
        font-size: 14px;
        font-family: Courier,Courier New ;
    }
    textarea{
        resize: vertical;
    }
    label.is-required:before {
        content: "*";
        color: #ff4949;
        margin-right: 4px;
        padding-top: 7px;
    }
    .scriptArea pre{
        max-height: 120px;
        overflow-y: scroll;
    }
    </style>

</head>

<body class="fixed-navbar fixed-sidebar fixed-footer">

<div class="splash"><div class="color-line"></div>

    <div class="splash-title"><h1>股票模型</h1>

        <div class="spinner"><div class="rect1"></div>

            <div class="rect2"></div>

            <div class="rect3"></div>

            <div class="rect4"></div>

            <div class="rect5"></div>
        </div>
    </div>
</div>

<div id="header">
    <div class="color-line">
    </div>

    <div id="logo" class="light-version">
        <span>
            股票模型
        </span>
    </div>
    <nav role="navigation">
        <div class="header-link hide-menu"><i class="fa fa-bars"></i></div>

        <div class="small-logo">
            <span class="text-primary">股票模型</span>
        </div>

        <div class="mobile-menu">
            <button type="button" class="navbar-toggle mobile-menu-toggle" data-toggle="collapse" style="margin-top:0"
                    data-target="#mobile-collapse">
            </button>

            <div class="collapse mobile-navbar" id="mobile-collapse">
                <ul class="nav navbar-nav new-dropdown">
                    <li>
                        <g:link controller="logoff">
                            <i class="fa fa-sign-out"></i>退出</g:link>
                    </li>
                </ul>
            </div>
        </div>

        <div class="navbar-right" id="header-right" style="margin-right: 20px;">

            <ul class="nav navbar-nav no-borders">
                <sec:ifLoggedIn>
                    <li class="dropdown">
                        <a class="dropdown-toggle dropdown-link" href="#" data-toggle="dropdown">
                            <span style="font-size: 16px"><sec:loggedInUserInfo field="username"/></span><b
                                style="margin-top: 3px;" class="caret"></b>
                        </a>
                        <ul class="dropdown-menu new-dropdown hdropdown animated flipInX">
                            <li>
                                <g:link controller="logoff">
                                    <i class="fa fa-lg fa-sign-out"></i>退出</g:link>
                            </li>
                        </ul>
                    </li>

                </sec:ifLoggedIn>
            </ul>
        </div>

    </nav>
</div>
<!-- Navigation -->
<sec:ifLoggedIn>

    <aside id="menu">
        <div id="navigation">
            <ul class="nav" id="side-menu">               

                <li>
                    <g:link controller="financialDatas" action="index">
                        <i class="fa-lg fa-fw fa fa-clone"></i>财务数据
                    </g:link>
                </li>
              
                <li>
                    <g:link controller="stocks" action="index">
                        <i class="fa-lg fa-fw fa fa-user-circle-o"></i>个股
                    </g:link>
                </li>
            </ul>
        </div>
    </aside>
</sec:ifLoggedIn>

<div id="wrapper">

    <g:layoutBody/>
</div>

<asset:javascript src="homer/vendor/jquery-ui/jquery-ui.min.js"/>
<asset:javascript src="homer/vendor/bootstrap/bootstrap.min.js"/>
<asset:javascript src="homer/vendor/bootstrap-touchspin/jquery.bootstrap-touchspin.min.js"/>
%{--<asset:javascript src="homer/vendor/jquery-validation/jquery.validate.min.js"/>--}%

<asset:javascript src="homer/vendor/metisMenu/metisMenu.min.js"/>
<asset:javascript src="homer/vendor/sweetalert/sweet-alert.min.js"/>
<asset:javascript src="homer/vendor/select2-3.5.2/select2.min.js"/>
<asset:javascript src="homer/vendor/select2-3.5.2/select2_locale_zh-CN.js"/>
<asset:javascript src="homer/vendor/codemirror/codemirror.js"/>
<asset:javascript src="homer/vendor/codemirror/javascript.js"/>
<asset:javascript src="homer/vendor/iCheck/icheck.min.js"/>
<asset:javascript src="homer/homer.js"/>
<asset:javascript src="homer/vendor/highlight/highlight.pack.js"/>
<script>
    $(function () {
        hljs.initHighlightingOnLoad();

//        折叠
        $(".collapsed .showhide").click(function () {
            $(this).parent().parent().toggleClass("hbuilt");
            $(this).parent().parent().parent().toggleClass("panel-collapse");
        });
        $("select").select2();
//        代码高亮
//删除数据
        $(document).delegate(".deleteBtn", "click", function () {
            var currentForm = $(this).parent("form");
            swal({
                        title: "您确认删除该数据吗?",
                        type: "warning",
                        showCancelButton: true,
                        confirmButtonColor: "#DD6B55",
                        cancelButtonText: "取消",
                        confirmButtonText: "删除",
                        closeOnConfirm: false,
                        closeOnCancel: true

                    },
                    function (isConfirm) {
                        if (isConfirm) {
                            swal({
                                title: "删除成功!",
                                type: "success",
                                confirmButtonText: false,
                                closeOnConfirm: true
                            });
                            currentForm.submit();


                        }
                    });

        });
    });
    //    日期插件

     $("input[name='executeSquence']").TouchSpin({
         verticalbuttons: true,
         min: -100000,
    });
</script>

</body>
</html>
